package GUI;

import javax.swing.JFrame;
import javax.swing.JOptionPane;


/**
 * The Class AbstractGUI extends JFrame class.
 * This class represents an abstract frame
 * @author Ofek-az
 *
 */
public abstract class AbstractGUI extends JFrame {

	
	
	/**
	 * Initialize the content of the frame.
	 */
	public abstract void initialize();
	
	/**
	 * Display warning message.
	 *
	 * @param msg the message.
	 */
	public void displayWarningMessage(String msg)
	{
		JOptionPane.showMessageDialog(this, msg,"Warning",JOptionPane.WARNING_MESSAGE);
	}
	
	/**
	 * Display message.
	 *
	 * @param msg the message
	 */
	public void displayMessage(String msg)
	{
		JOptionPane.showMessageDialog(this, msg,"Info",JOptionPane.INFORMATION_MESSAGE);
	}
}
